<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        ul {
            list-style: none;
        }
        
        a {
            color: #06c;
            text-decoration: none;
        }
        
        a:hover {
            color: #f60;
        }
        
        .nav {
            width: 980px;
            height: 35px;
            margin: 100px auto;
            background: pink;
        }
        
        .nav ul li {
            float: left;
        }
        
        .nav ul li a,
        .nav ul li span {
            display: block;
            height: 35px;
            line-height: 35px;
        }
    </style>
</head>

<body>
    <div class="nav">
        <ul>
            <li><a href=""><span>首页</span></a></li>
        </ul>
    </div>
</body>

</html>